<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title><{webcontrol type='GetAppInf' varName='systemV'}></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <{webcontrol type='LoadJsCss' src="Resource/Script/layui/layui/css/layui.css"}>
    <{webcontrol type='LoadJsCss' src="Resource/Script/layui/style/admin.css"}>
    <{webcontrol type='LoadJsCss' src="Resource/Script/Print/LodopFuncs.js"}>
    <object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
    <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop.exe"></embed>
    </object>
    <{webcontrol type='LoadJsCss' src="Resource/Script/jquery.1.9.1.js"}>
    <style type="text/css">
        .layui-input{display: inline-block;width: 80px;height: 30px;}
        #prn { position:fixed; bottom:10px; right:150px;}
        #prn input[type="button"],a {  background-color: #0362fd !important; border:0px; color: #fff !important; font-family: '宋体';cursor: pointer; outline: medium none; font-size:14px; padding: 7px 14px;}
        #prn input[type="number"]{width: 40px;padding: 4px 14px;}

    </style>
    <script type="text/javascript">
        var object = <{$row|@json_encode}>;
        var sys = <{$sys|@json_encode}>;
        function printCode(key) {
            alert(key);
        }
    </script>
</head>
<body>
    <div class="layui-fluid" id="LAY-component-grid-all">
        <div class="layui-row layui-col-space10">
            <{foreach from=$row item=item key=key}>
            <div class="layui-col-xs12 layui-col-sm6 layui-col-md4">
                <!-- 填充内容 -->
                <div class="layui-card">
                    <div class="layui-card-header" style="position: relative;">
                        <input type="checkbox" name="chukuCode" value="<{$item.id}>" <{if $item.Print|@count <= 0}>disabled<{else}> checked="true" <{/if}>>
                        条码：<{$item.code}>
                        <div class="layui-col-md1" style="float: right;margin-right: 50px;">
                            <select id="proKind" name="proKind" style="border: 1px solid #efefef;padding: 5px 10px;">
                                <{foreach from=$item.Print item=item1 key=key1}>
                                <option value="<{$item1.id}>" <{if $item1.isDefault=='1' }>selected<{/if}>> <{$item1.printName}></option>
                                <{/foreach}>
                            </select>
                        </div>
                    </div>
                    <div class="layui-card-body">
                        <div class="layui-row">
                            <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
                                产品编号：<{$item.code}>
                            </div>
                            <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
                                产品名称：<{$item.Product.proName}>
                            </div>
                            <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
                                花型颜色：<{$item.proDesc}>
                            </div>
                            <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
                                本次数量：<{$item.cnt}>
                            </div>
                            <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
                                样品类型：<{$item.type}>
                            </div>
                            <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
                                样品位置：<{$item.kuweiName}>
                            </div>

                            <!-- <div class="layui-col-sm12 layui-col-md12 layui-col-lg12" style="text-align: right;">
                                <{if $item.Print.error}>
                                <button class="layui-btn layui-btn-sm layui-btn-disabled"><{$item.Print.error}></button>
                                <{else}>
                                <input type="text" id="input_<{$key}>" title="打印份数" placeholder="打印份数" autocomplete="off" value="1" class="layui-input layui-input-sm">
                                <button class="layui-btn layui-btn-sm layui-btn-normal" onclick="<{$item.Print.templete}>('<{$key}>')">打印</button>
                                <{/if}>
                            </div> -->
                        </div>
                    </div>
                </div>
            </div>
            <{/foreach}>
        </div>
    </div>
    <div id="prn" align="center">
      <input type="button" id="button1" name="button1" value="打印" onclick="prnbutt_onclick('')" />
      <input type="button" id="button1" name="button1" value="打印预览" onclick="prnbutt_onclick('view')" />
      <input type="number" step="1" name="numPrinter" id="numPrinter" value="1" title="打印份数" min="1">
    </div>
    <{include file="Sample/qrcode.tpl"}>
    <{*include file="Sample/barcode.tpl"*}>
</body>
</html>
